import request from '@/utils/request'

export function listBrandByConeId(coneId) {
  return request({
    url: '/webshop/BrandInfo/listBrandByConeId/' + coneId ,
    method: 'get'
  })
}


export function listBrandAll() {
  return request({
    url: '/webshop/BrandInfo/listAll',
    method: 'get'
  })
}


// 查询品牌#brand_info列表
export function listBrandInfo(query) {
  return request({
    url: '/webshop/BrandInfo/list',
    method: 'get',
    params: query
  })
}

// 查询品牌#brand_info详细
export function getBrandInfo(brandId) {
  return request({
    url: '/webshop/BrandInfo/' + brandId,
    method: 'get'
  })
}

// 新增品牌#brand_info
export function addBrandInfo(data) {
  return request({
    url: '/webshop/BrandInfo',
    method: 'post',
    data: data
  })
}

// 修改品牌#brand_info
export function updateBrandInfo(data) {
  return request({
    url: '/webshop/BrandInfo',
    method: 'put',
    data: data
  })
}

// 删除品牌#brand_info
export function delBrandInfo(brandId) {
  return request({
    url: '/webshop/BrandInfo/' + brandId,
    method: 'delete'
  })
}



//
export function getBrandInfoByConeId(coneId) {
  return request({
    url: '/webshop/BrandInfo/listByConeId/' + coneId,
    method: 'get'
  })
}

